package cn.minimelon.api.domain.common;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProgressInfo {
    /**
     * 进度唯一KEY
     */
    private String id;
    /**
     * 进度总条数
     */
    private int totalNum;
    /**
     * 进度成功条数
     */
    private int successNum;
    /**
     * 已完成 0否1是
     */
    private int done;
    /**
     * 进度失败条数
     */
    private int failNum;
    /**
     * 其他描述信息
     */
    private String remark;

    public ProgressInfo(String id, int total) {
        this.id = id;
        this.totalNum = total;
        this.successNum = 0;
        this.failNum = 0;
        this.done = 0;
    }
}
